<div class="c-detail-title">
    <div class="u-back clearfix">
        <button ng-click="goBack('accountDetail');" class="btn btn-default test_2874b5ed">返回</button>
    </div>
    <div class="u-title">
        {{accountInfo.custName}}
    </div>
</div>

<div class="account-info-box clearfix">
    <div class="left">
        <h3>账户信息</h3>
        <p class="balance">账户余额：</p>
        <p class="money">{{accountInfo.totalBalance}}<span> {{accountInfo.currency}}</span></p>
        <p class="withdraw">可提现余额：{{accountInfo.availableBalance}} {{accountInfo.currency}}</p>
        <p class="depository">存管账户号：{{accountInfo.accountId}}</p>
        <div class="operate-box">
            <button type="button" class="btn btn-primary" ng-click="reCharge('recharge')">充值</button>
            <button type="button" class="btn btn-primary" ng-click="withdraw('withdrawApply')">提现</button>
            <div class="f-down-list">
                <form id="passwordForm" name="passwordForm" novalidate="novalidate" method="post" action="https://my-st1.orangebank.com.cn/corporbank/nonpartyVerify.do" target="_blank">
                    <!--<button type="button" class="btn btn-primary" style="margin-right:0px;">
                        交易密码
                        <i class="icon-more-down icon-angle-down"></i>
                    </button>
                    <ul class="down-ul-list">
                        <li><a href="javascript:;" ng-click="transPassword('S')">设置密码</a></li>
                        <li><a href="javascript:;" ng-click="transPassword('C')">修改密码</a></li>
                        <li><a href="javascript:;" ng-click="transPassword('R')">重置密码</a></li>
                    </ul>-->
                    <input type="hidden" id="name-pass" name="name" value="" />
                    <input type="hidden" id="orderid-pass" name="orderid" value="" />
                    <input type="hidden" id="type-pass" name="type" value="" />
                    <input type="hidden" id="p2PCode-pass" name="P2PCode" value="" />
                    <input type="hidden" id="p2PType-pass" name="P2PType" value="" />
                    <input type="hidden" id="thirdCustId-pass" name="thirdCustId" value="" />
                    <input type="hidden" id="custAccId-pass" name="custAccId" value="" />
                    <input type="hidden" id="mobile-pass" name="mobile" value="" />
                    <input type="hidden" id="orig-pass" name="orig" value="" />
                    <input type="hidden" id="returnurl-pass" name="returnurl" value="" />
                    <input type="hidden" id="notifyUrl-pass" name="notifyUrl" value="" />
                    <input type="hidden" id="channelType-pass" name="channelType" value="" />
                    <input type="hidden" id="idType-pass" name="idType" value="" />
                    <input type="hidden" id="idNo-pass" name="idNo" value="" />
                    <input type="hidden" id="accNo-pass" name="accNo" value="" />
                    <input type="hidden" id="accName-pass" name="accName" value="" />
                </form>
            </div>
        </div>
    </div>
    <div class="right">
        <button class="btn btn-primary u-operate" ng-click="bankManager('bankManager')">管理</button>
        <h3>银行账户信息</h3>
        <p><span class="u-new-add">最近添加</span></p>
        <ul>
            <li>
                <span class="left-text">账户号：</span>
                <span class="right-text">{{accountBank.cardNo}}</span>
            </li>
            <li>
                <span class="left-text">银行：</span>
                <span class="right-text">{{accountBank.bank}}</span>
            </li>
            <li>
                <span class="left-text">开户行：</span>
                <span class="right-text">{{accountBank.subbranch}}</span>
            </li>
            <!--<li>-->
                <!--<span class="left-text">-->
                    <!--开户行地址：-->
                <!--</span>-->
                <!--<span class="right-text">-->
                    <!--{{accountBank.address}}-->
                <!--</span>-->
            <!--</li>-->
            <!--<li>-->
                <!--<span class="left-text">Swift码：</span>-->
                <!--<span class="right-text">{{accountBank.swiftCode}}</span>-->
            <!--</li>-->
            <!--<li>-->
                <!--<span class="left-text">账户持有人：</span>-->
                <!--<span class="right-text">{{accountBank.holder}}</span>-->
            <!--</li>-->
            <!--<li>-->
                <!--<span class="left-text">币种：</span>-->
                <!--<span class="right-text">{{accountBank.currencyName}} {{accountBank.currency}}</span>-->
            <!--</li>-->
        </ul>
    </div>
</div>

<div class="account-deal-record" ng-controller="tableController">
    <div class="m-search-box">
        <h3>交易记录</h3>
        <div class="normal">
            <input ng-model="tableModel.restData.q" ng-enter="searchRecord()" type="text" maxlength="30" class="form-control" placeholder="搜索对方账号持有人/账单号">
            <button class="btn btn-primary" style="margin:0px 12px;" ng-click="searchRecord();">搜索</button>
            <a href="javascript:;" class="normal-search-btn" ng-click="filters()">{{advancedText}}</a>
        </div>
        <div class="advanced" ng-show="advanced">
            <div style="display: inline-block;text-align: left;">
                <span class="label-span">交易时间</span>
                <input readonly="readonly" ng-model="tableModel.restData.beginDate" id="begin-time" ng-trim="false" type="text" maxlength="30" autocomplete="off">
                ~
                <input readonly="readonly" ng-model="tableModel.restData.endDate" id="end-time" ng-trim="false" type="text" maxlength="30" autocomplete="off">

                <span class="label-span">交易类型</span>
                <div class="select-box" style="display: inline-block">
                    <input ng-click="getStatus()" ng-model="statusName" ng-value="statusValue" id="select-status" readonly="readonly" ng-trim="false" type="text" placeholder="全部">
                    <i class="select-icon icon-drop-down"></i>
                </div>
            </div>
        </div>
    </div>
    <div class="table-box">
        <table class="account-record-table table-box" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th ng-repeat="item in tableModel.tableHeader">{{item}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="value in tableModel.tableBody" ng-init="renderFinish($last)">
                    <td><a href="javascript:;" ng-click="getRecordDetail(value)">{{value.id}}</a></td>
                    <td>
                        {{value.tranTime}}
                    </td>
                    <td ng-bind-html="(value.thirdPayAccountName || '-') | trustHtml:q"></td>
                    <td><a ng-click="getRecordDetail(value)" href="javascript:void(0);" ng-bind-html="(value.billNo || '-') | trustHtml:q"></a></td>
                    <td>{{value.tranAmount}}</td>
                    <td>{{value.tranType}}</td>
                </tr>
            </tbody>
        </table>
        <hnapagination table-service="table" page-table-model="tableModel"></hnapagination>
    </div>
</div>